<script src="assets/run_prettify.js?lang=xml&skin=doxy"></script>
<div class="container-fluid">
<%= link_to (image_tag "logo.png", :align=>"right", :width=>"12%"), "http://www.rism.info" %>
<h1>XML Bach Digital Converter</h1>
<br>

For analyzing the complete set see 
<%= link_to "Analyzer","http://lab.rism.info:3333/bd/analyze"%>.
<br>
For inspect of subfield content see 
<%= link_to "Subfield content","http://lab.rism.info:3333/bd/showsubfield"%>.
<br>
Send <%= link_to "Feedback","mailto:stephan.hirsch@rism.info"%>. See also 
<%= link_to "Changelog","http://lab.rism.info:3333/bd/changelog"%>.
<br>
<br>
<div class="row">
<div class="span9">



    <%= simple_form_for "extext", :html => {:class => "form-inline"} do |m| %>          
          <%#= m.text_field :name, :class=>"search", :value=>@name %>
          <%#= m.select("name", @ids.collect {|c| [c]})%>
          <%#= m.input :source_type, :label => "Lead or VTeam", :collection => ["lead","vteam"], :selected => "lead" %>          
          <%#= m.input :name, :label => "ID", :collection => @ids %>
          
          <%= m.autocomplete_field :name, 'bd/autocomplete_rismid_h0001' %>
          
          
          <%#= m.input :name, :as => :autocomplete, :url => 'bd/autocomplete_rismid_h0001' %>
          
          
          
          
          
          <%#= autocomplete_field_tag 'name', 'bd/autocomplete_rismids_h0001', :size => 75 %>
          <%#= m.autocompleted_input :name, :url => @ids %>
          <%#= m.autocomplete_field 'name', autocomplete_rismids_h0001 %>
          <%= m.submit "Search"%>
          <div class="example">

</div>   
    <% end %>
 
 </div>
 </div>

<!-- Sample id's for preselection: --> 
<%#= @ids.join(", ") %>
<p>
<br>
Bach Digital:
 <%= link_to @url, @url%>.
<br>
Converted record:
</p>
<pre class="prettyprint" >
</code>
<%= @new_xml %>
</code>
</pre>
<p>
<%=@marc_hash %>
Original record:
</p>
<p>
<pre>
<%= @old_xml %>
<%= @num %>
</pre> 
</p>


